package com.jk.fegin.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jk.api.CouponServiceApi;
import com.jk.dao.CouponDao;
import com.jk.po.CouponPojo;

import com.jk.service.CouponsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CouponServiceImpl implements CouponsService {
    @Autowired
    private CouponDao couponDao;

    @Override
    public IPage<CouponPojo> queryCouList() {
        IPage<CouponPojo> objectPage =new Page<>(1,2);
        IPage<CouponPojo> couponPojoIPage = couponDao.selectPage(objectPage, null);
        return couponPojoIPage;
    }
}
